<?php 

$reqCountAnnee = mysql_query('Select count(*) as nbArtAnnee from article where year(DATE_PUBLI) = "2011" '); 
$resCountAnnee = mysql_fetch_array($reqCountAnnee);

?>

<div id="contentMenu"><br />
	<a href="#">2011 (<?php echo $resCountAnnee['nbArtAnnee']; ?>)</a>
	<ul>

<?php 

$i = 0;
for($i = 1; $i < 13; $i++)
{
	$mois = date("M", strtotime("2011-".$i."-01"));
	$reqCount = mysql_query('Select count(*) as nbArt from article where month(DATE_PUBLI) = "'.$i.'" ');
	$resCount = mysql_fetch_array($reqCount);
	echo '<li><a href="articles.php?mois='.$i.'">'.$mois.'  ('.$resCount['nbArt'].')</a></li>';
}


?>
	</ul>
</div><br />

